<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-4-16
 * Time: 上午10:18
 */
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}
loadcache('plugin');
$set= $_G['cache']['plugin']['iexam'];
require_once "function.php";
$category = categories();
$query = DB::query("SELECT * FROM ".DB::table('plugin_iexam'));
while($field = DB::fetch($query)){
	$field['catname'] = DB::result_first("SELECT catname FROM ".DB::table('plugin_iexam_category')." WHERE catid = ".$field['catid']);
	$list[] = $field;
}
$score = floor($set['examScore']/$set['examNum']);
?>